package com.patterns.builder.carModel.builder;

import com.patterns.builder.carModel.Product.BenzModel;
import com.patterns.builder.carModel.Product.CarModel;

import java.util.ArrayList;

/**
 * Created by Xiao Yiyun on 2017/4/21.
 */
public class BenzBuilder extends CarBuilder {
    //new一个Benz模型的实现类创建模型对象
    private BenzModel benzModel = new BenzModel();
    //得到组装顺序传递给模板抽象类的模板方法
    public void setArrayList(ArrayList<String> arrayList) {
        this.benzModel.setArrayList(arrayList);
    }
    //返回按顺序创建好的模型对象
    public CarModel getCarModel() {
        return benzModel;
    }
}